package www.test.com.config;

import org.springframework.stereotype.Component;
import www.test.com.entity.User;
import www.test.com.service.UserService;

import java.util.List;

/**
 *  熔断器处理类（User）
 */
@Component
public class UserFallBack implements UserService {
    @Override
    public String addUser() {
        return "新增用户失败！";
    }

    @Override
    public List<User> findAll() {
        return null;
    }
}
